package com.lanyam.travel.base.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lanyam.travel.base.dao.OrderGoodsDateMapper;
import com.lanyam.travel.base.dao.OrderUserMapper;
import com.lanyam.travel.base.entity.OrderGoodsDate;
import com.lanyam.travel.base.entity.OrderUser;
import com.lanyam.travel.base.entity.vo.OrderGoodsDateVo;
import com.lanyam.travel.base.service.IOrderGoodsDateService;
import com.lanyam.travel.base.service.IOrderUserService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author rosson
 * @since 2020-01-27
 */
@Service
public class OrderGoodsDaeServiceImpl implements IOrderGoodsDateService {

	@Autowired
	private OrderGoodsDateMapper orderGoodsDateMapper;

	@Override
	public void batchInsertOrderGoodsDate(List<OrderGoodsDate> datePriceList) {
		// TODO Auto-generated method stub
		for (OrderGoodsDate orderGoodsDate : datePriceList) {
			orderGoodsDateMapper.insert(orderGoodsDate);
		}
	}

	@Override
	public List<OrderGoodsDateVo> getHotelDatePrice(String orderId) {
		// TODO Auto-generated method stub
		return orderGoodsDateMapper.getHotelDatePrice(orderId);
	}

	@Override
	public List<OrderGoodsDateVo> getScenicDatePrice(String orderId) {
		// TODO Auto-generated method stub
		return orderGoodsDateMapper.getScenicDatePrice(orderId);
	}
	
	
}
